package com.donn.securitycontrolplatform.taginfo.service.impl;


import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.donn.securitycontrolplatform.db2.mapper.TaginfoMapper;
import com.donn.securitycontrolplatform.taginfo.entity.Taginfo;
import com.donn.securitycontrolplatform.taginfo.service.ITaginfoService;
import org.springframework.stereotype.Service;

/**
 * <p>
 * 服务实现类
 * </p>
 *
 * @author zhenglx
 * @since 2022-07-07
 */
@Service
public class TaginfoServiceImpl extends ServiceImpl<TaginfoMapper, Taginfo> implements ITaginfoService {

    @Override
    public Taginfo getByTagId(String tagNo) {
        QueryWrapper<Taginfo> queryWrapper = new QueryWrapper<>();
        queryWrapper.eq(Taginfo.TAG_ID, tagNo);
        return getOne(queryWrapper);
    }
}
